/**
 * TODO: provide description with examples.
 *
 * @author Andrey Anisimov <hercules@inbox.ru>
 */

class ValidationError {

	/**
	 * @param validator (Validator)
	 * @param message (string)
	 */
	this.ValidationError = function(validator, message) {
		this.validator = validator;
		this.message = message;
	}

	/**
	 * @return string
	 */
	this.getMessage = function() {
		return this.message;
	}

	/**
	 * @return Validator
	 */
	this.getValidator = function() {
		return this.validator;
	}
}